package cn.wgx.modules.sys.entity;

import cn.wgx.modules.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
 * Description:
 * 日志表
 *
 * @author 
 */
public class SysLog extends BaseEntity implements Serializable {
    /**
     * 编号
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private Integer log_id;

    /**
     * 日志类型
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String type;

    /**
     * 日志标题
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String title;

    /**
     * 创建者
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private Integer createUserId;

    /**
     * 创建时间
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private Date createDate;

    /**
     * 操作IP地址
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String remote_host;

    /**
     * 用户代理
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String user_agent;

    /**
     * 请求URI
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String request_uri;

    /**
     * 操作方式
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String method;

    /**
     * 操作提交的数据
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String params;

    /**
     * 异常信息
     *
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private String exception;

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method returns the value of the database column cgcenter..sys_log.log_id
     *
     * @return the value of cgcenter..sys_log.log_id
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public Integer getLog_id() {
        return log_id;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withLog_id(Integer log_id) {
        this.setLog_id(log_id);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.log_id
     *
     * @param log_id the value for cgcenter..sys_log.log_id
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setLog_id(Integer log_id) {
        this.log_id = log_id;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.type
     *
     * @return the value of cgcenter..sys_log.type
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getType() {
        return type;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withType(String type) {
        this.setType(type);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.type
     *
     * @param type the value for cgcenter..sys_log.type
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.title
     *
     * @return the value of cgcenter..sys_log.title
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getTitle() {
        return title;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withTitle(String title) {
        this.setTitle(title);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.title
     *
     * @param title the value for cgcenter..sys_log.title
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.createUserId
     *
     * @return the value of cgcenter..sys_log.createUserId
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public Integer getCreateUserId() {
        return createUserId;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withCreateUserId(Integer createUserId) {
        this.setCreateUserId(createUserId);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.createUserId
     *
     * @param createUserId the value for cgcenter..sys_log.createUserId
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.createDate
     *
     * @return the value of cgcenter..sys_log.createDate
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withCreateDate(Date createDate) {
        this.setCreateDate(createDate);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.createDate
     *
     * @param createDate the value for cgcenter..sys_log.createDate
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.remote_host
     *
     * @return the value of cgcenter..sys_log.remote_host
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getRemote_host() {
        return remote_host;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withRemote_host(String remote_host) {
        this.setRemote_host(remote_host);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.remote_host
     *
     * @param remote_host the value for cgcenter..sys_log.remote_host
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setRemote_host(String remote_host) {
        this.remote_host = remote_host;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.user_agent
     *
     * @return the value of cgcenter..sys_log.user_agent
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getUser_agent() {
        return user_agent;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withUser_agent(String user_agent) {
        this.setUser_agent(user_agent);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.user_agent
     *
     * @param user_agent the value for cgcenter..sys_log.user_agent
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setUser_agent(String user_agent) {
        this.user_agent = user_agent;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.request_uri
     *
     * @return the value of cgcenter..sys_log.request_uri
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getRequest_uri() {
        return request_uri;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withRequest_uri(String request_uri) {
        this.setRequest_uri(request_uri);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.request_uri
     *
     * @param request_uri the value for cgcenter..sys_log.request_uri
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setRequest_uri(String request_uri) {
        this.request_uri = request_uri;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.method
     *
     * @return the value of cgcenter..sys_log.method
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getMethod() {
        return method;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withMethod(String method) {
        this.setMethod(method);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.method
     *
     * @param method the value for cgcenter..sys_log.method
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setMethod(String method) {
        this.method = method;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.params
     *
     * @return the value of cgcenter..sys_log.params
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getParams() {
        return params;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withParams(String params) {
        this.setParams(params);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.params
     *
     * @param params the value for cgcenter..sys_log.params
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setParams(String params) {
        this.params = params;
    }

    /**
     * This method returns the value of the database column cgcenter..sys_log.exception
     *
     * @return the value of cgcenter..sys_log.exception
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getException() {
        return exception;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLog withException(String exception) {
        this.setException(exception);
        return this;
    }

    /**
     * This method sets the value of the database column cgcenter..sys_log.exception
     *
     * @param exception the value for cgcenter..sys_log.exception
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setException(String exception) {
        this.exception = exception;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", log_id=").append(log_id);
        sb.append(", type=").append(type);
        sb.append(", title=").append(title);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createDate=").append(createDate);
        sb.append(", remote_host=").append(remote_host);
        sb.append(", user_agent=").append(user_agent);
        sb.append(", request_uri=").append(request_uri);
        sb.append(", method=").append(method);
        sb.append(", params=").append(params);
        sb.append(", exception=").append(exception);
        sb.append("]");
        return sb.toString();
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysLog other = (SysLog) that;
        return (this.getLog_id() == null ? other.getLog_id() == null : this.getLog_id().equals(other.getLog_id()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getRemote_host() == null ? other.getRemote_host() == null : this.getRemote_host().equals(other.getRemote_host()))
            && (this.getUser_agent() == null ? other.getUser_agent() == null : this.getUser_agent().equals(other.getUser_agent()))
            && (this.getRequest_uri() == null ? other.getRequest_uri() == null : this.getRequest_uri().equals(other.getRequest_uri()))
            && (this.getMethod() == null ? other.getMethod() == null : this.getMethod().equals(other.getMethod()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getException() == null ? other.getException() == null : this.getException().equals(other.getException()));
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLog_id() == null) ? 0 : getLog_id().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getRemote_host() == null) ? 0 : getRemote_host().hashCode());
        result = prime * result + ((getUser_agent() == null) ? 0 : getUser_agent().hashCode());
        result = prime * result + ((getRequest_uri() == null) ? 0 : getRequest_uri().hashCode());
        result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getException() == null) ? 0 : getException().hashCode());
        return result;
    }
}